package com.celesea.workflow.demo.v1.controller.resource;

import com.celesea.framework.vo.DictionaryVo;
import com.celesea.workflow.demo.vo.DemoVo;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-11-18 15:45
 */
public class DemoResource  {

    private String id;

    private String title;
    private String content;

    private List<DictionaryVo> users;

    private List<DictionaryVo> groups;

    public DemoResource(DemoVo model) {
        BeanUtils.copyProperties(model,this);

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<DictionaryVo> getUsers() {
        return users;
    }

    public void setUsers(List<DictionaryVo> users) {
        this.users = users;
    }

    public List<DictionaryVo> getGroups() {
        return groups;
    }

    public void setGroups(List<DictionaryVo> groups) {
        this.groups = groups;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
